package org.huntaway.kernel.test;

public abstract class HuntaWayThread extends Thread {
	Thread thread;

	public void start() {
		if (thread == null) {
			thread = new Thread();
			super.start();
		}
	}

	public void run() {
		while (thread != null) {
			try {
				runBody();
			} catch (Exception e) {

			}
		}

	}

	public abstract void runBody();

}
